home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / dbase / load.c < prev    next >
C/C++ Source or Header  |  1996-07-28  |  503b  |  21 lines

  1.  
  2. #include "dbase.p"
  3.  
  4. void load(THE_FILE_ENUM_ the_source)
  5. {                                  
  6.     char
  7.         *line;
  8.  
  9.     while ((line = get_active_tty()))
  10.     {
  11.         assign_filenames(line);
  12.         copyfile(filename[the_source], filename[the_activefile]);
  13.         unlink(filename[the_statefile]);
  14.         unlink(filename[the_disablefile]);
  15.         log(log_on, "Line %s enabled: %s removed", line, 
  16.                                          getfile(the_disablefile));
  17.     }
  18.     make_configfile();
  19. }
  20.  
  21.